#include "tcpserver.hpp"
#include "Calculator.hpp"
#include <functional>

int main(int argc , char* argv[])
{
    if(argc != 2)
    {

    }
    uint16_t port = std::stoi(argv[1]);

    Calculator cal;
    TcpServer tsv(port,std::bind(&Calculator::operator(), &cal, std::placeholders::_1));

    tsv.Init();
    tsv.Start();

    return 0;
}